package com.shop.admin.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 批次规则表所需关键字段维护表(RuleNeed)实体类
 *
 * @author makejava
 * @since 2022-11-09 20:17:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
public class RuleNeed implements Serializable {
    private static final long serialVersionUID = -99412221223809850L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 规则id
     */
    private Integer ruleId;
    /**
     * 制券类型所需关键字段 1满送时为商品id 2 满折为折扣 3满减为实减金额
     */
    private String couponTypeNeed;
    /**
     * 券使用范围所需关键字段  2类别时为类别id 3商品时间为商品id
     */
    private Integer couponRangeNeed;

}

